package ch.fusun.baron.serverapp.view;

import java.util.List;

import org.eclipse.swt.graphics.Image;

import ch.fusun.baron.core.rmi.User;

/**
 * User children provider
 */
public interface UserChildrenProvider {

	/**
	 * @param user
	 *            The user
	 * @return The children of the user
	 */
	List<?> getChildren(User user);

	/**
	 * @param obj
	 *            The object to get an image for
	 * @return The appropriate image or <code>null</code> to show no image
	 */
	Image getImage(Object obj);
}
